<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'menu.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="/OAProject/css/menu.css" />

</head>

<body>
	<ul id="ul-one">
		<li class="ul-one-one">
			<div class="one" onclick="menu(1);">
				人事管理<span id="one_span1">+</span>
			</div>
			<ul id="id1">
				<!-- 修改href 和 文字 -->
				<li class="ul-one-two"><a href="splitpage?type=2"
					target="content-right-zi">部门管理</a></li>
				<li class="ul-one-two"><a href="splitpage2?type=2"
					target="content-right-zi">员工管理</a></li>				
			</ul>
		</li>
		<li class="ul-one-one">
			<div class="one" onclick="menu(2);">
				日程管理<span id="one_span2">+</span>
			</div>
			<ul id="id2">
				<!-- 修改href 和 文字 -->
				<li class="ul-one-two">
				    <a href="<%=request.getContextPath()%>/admin_cg/date_yz/index.jsp" target="content-right-zi">我的日程</a></li>
				<li class="ul-one-two">
				     <a href="admin_pg/date_yz/department.jsp" target="content-right-zi">部门日程</a></li>
				<li class="ul-one-two">
				     <a href="/OAProject/yz/mynotefindAll" target="content-right-zi">我的便签</a></li>
			</ul>
		</li>
		<li class="ul-one-one">
			<div class="one" onclick="menu(3);">
				文档管理<span id="one_span3">+</span>
			</div>
			<ul id="id3">
				<li class="ul-one-two"><a href="/OAProject/file/tree_menu"
					target="content-right-zi">文档管理</a></li>
				<li class="ul-one-two"><a
					href="admin_pg/fileManage/fileFind.jsp" target="content-right-zi">文件搜索</a></li>
				<li class="ul-one-two"><a href="/OAProject/file/file_recyleBin"
					target="content-right-zi">回收站</a></li>
			</ul>
		</li>
		<li class="ul-one-one">
			<div class="one" onclick="menu(4);">
				消息管理<span id="one_span4">+</span>
			</div>
			<ul id="id4">
				<!-- 修改href 和 文字 -->
				<li class="ul-one-two"><a
					href="<%=request.getContextPath()%>/admin_cg/hzx/showmessage.jsp"
					target="content-right-zi">消息管理</a></li>
				<li class="ul-one-two"><a
					href="<%=request.getContextPath()%>/admin_cg/hzx/mailbox.jsp"
					target="content-right-zi">信箱</a></li>
			</ul>
		</li>
		<!-- <li class="ul-one-one">
			<div class="one" onclick="menu(5);">
				系统管理<span id="one_span5">+</span>
			</div>
			<ul id="id5">
				修改href 和 文字
				<li class="ul-one-two"><a href="roleinfo_getAll" 
					target="content-right-zi">角色管理</a></li>
				<li class="ul-one-two"><a href="loginlog_getAll"
					target="content-right-zi">登录管理</a></li>
				<li class="ul-one-two"><a href="operatelog_getAll"
					target="content-right-zi">操作管理</a></li>
					<li class="ul-one-two"><a href="operatelog_getAll"
					target="content-right-zi">菜单排序</a></li>
			</ul>
		</li> -->
		<li class="ul-one-one">
			<div class="one" onclick="menu(6);">
				考勤管理<span id="one_span6">+</span>
			</div>
			<ul id="id6">
				<!-- 修改href 和 文字 -->
				<li class="ul-one-two"><a href="domenu"
					target="content-right-zi">员工签到、签退</a></li>
				<li class="ul-one-two"><a href="admin_pg/wmy/selectMain.jsp"
					target="content-right-zi">考勤历史查询</a></li>
				<li class="ul-one-two"><a href="admin_pg/wmy/signst.jsp"
					target="content-right-zi">考勤统计</a></li>
			</ul>
		</li>
	</ul>
	<script type="text/javascript">
		//菜单展开  合并
		document.getElementById("id1").style.height = 0 + "px";
		document.getElementById("id2").style.height = 0 + "px";
		document.getElementById("id3").style.height = 0 + "px";
		document.getElementById("id4").style.height = 0 + "px";
		//document.getElementById("id5").style.height = 0 + "px";
		document.getElementById("id6").style.height = 0 + "px";
		var menu = function(num) {
			var obj = document.getElementById("id" + num);
			var obj_child = obj.children.length;
			if (obj.style.height == 0 + "px") {
				document.getElementById("one_span" + num).innerHTML = "-";
				//alert(document.getElementById("one_span"+num));
				obj.style.height = obj_child * 25 + "px";
			} else {
				document.getElementById("one_span" + num).innerHTML = "+";
				obj.style.height = 0 + "px";
			}
		};
	</script>
</body>

</html>
